<?php

declare(strict_types=1);
/**
 * This file is part of micro-word.
 *
 * @link     https://www.cppo.cn/
 * @contact  1300188034@qq.com
 * @license  https://gitee.com/cppo/micro_word/blob/master/README.md
 */

namespace App\Helpers;

abstract class Code
{
    /**
     * @var int 成功码
     */
    public const int SUCCESS = 200;

    /**
     * @var int 失败码
     */
    public const int ERROR = 50400;

    /**
     * @var int 系统错误
     */
    public const int SYSTEM_ERROR = 50401;

    /**
     * @var int 参数错误
     */
    public const int PARAM_ERROR = 50402;

    /**
     * @var int 运行错误
     */
    public const int RUN_ERROR = 50403;

    /**
     * @var array|string[] 错误信息
     */
    public const array MSG = [
        self::SUCCESS => 'success',
        self::ERROR => 'error',
        self::SYSTEM_ERROR => 'system error',
        self::PARAM_ERROR => 'param error',
        self::RUN_ERROR => 'run error',
    ];
}
